package cqut1;

public class Test {
    public static void main(String[] args) {
        A a=new B();
        System.out.println(a.a);
    }
}
class A{
    int a=1;
}
class B extends A{
    int a=2;

    @Override
    public String toString() {
        return super.toString();
    }
}